package org.ilovecode.display 
{
	import flash.display.MovieClip;
	import flash.geom.ColorTransform;
	import flash.text.TextField;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class ApartmentInfoItem extends MovieClip 
	{
		
		//{ region Stage elements
		
		public var nameTextField:TextField;
		public var areaTextField:TextField;
		public var graphic:MovieClip;
		
		//} endregion
		
		public function ApartmentInfoItem() 
		{
			
		}
		
		public function init(name:String, area:String, color:uint):void {
			nameTextField.text = name;
			areaTextField.text = area + " m2";
			var ct:ColorTransform = new ColorTransform();
			ct.color = color;
			graphic.transform.colorTransform = ct;
		}
		
	}

}